package org.kievhomes;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MainController /* implements Controller */{

	// protected final Log logger = LogFactory.getLog(getClass());
	@RequestMapping(value = "/index.html")
	public ModelAndView handleRequest(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {

		// logger.info("Returning hello view");

		return new ModelAndView("hello.jsp");
	}

}